<template >
    <div>
        <button @click="updateCount">组合式计数：{{count}}</button>
    </div>
</template>
<script>
import {ref} from "vue"
export default {
    name: 'Compositions',
    setup(){
        let count = ref(0);
        function updateCount(){
            count.value += 1;
        }
        return{
            count,
            updateCount
        }

    }

    
}
</script>
<style lang="">
    
</style>